package com.example.myapp.models;

public enum Direction {
    UP(0, 1),
    DOWN(0, -1),
    LEFT(-1, 0),
    RIGHT(1, 0),
    TOPLEFT(-1, 1),
    TOPRIGHT(1, 1),
    DOWNLEFT(-1, -1),
    DOWNRIGHT(1, -1),
    CENTER(0, 0);

    private int dx;
    private int dy;

    Direction(int dx, int dy) {
        this.dx = dx;
        this.dy = dy;
    }

    public int getDx() {
        return this.dx;
    }

    public int getDy() {
        return this.dy;
    }
}
